package com.food.chronicles.entity.secondary;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 牧之
 * @since 2025-06-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("xiachufang.recipes")
public class Recipes implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String link;

    private String categoryId;

    private Date createTime;

    /**
     * 是否已获取详情
     */
    private Boolean isFetched;

    /**
     * 获取时间
     */
    private Date fetchTime;

    /**
     * 详情JSON
     */
    private String detailJson;

    /**
     * 同步标识
     * 0：未同步
     * 1：已同步
     */
    private Integer syncFlag;
}
